package com.example.plan.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 无人机设备表
 * @TableName drone
 */
@ApiModel(value = "Drone", description = "无人机设备增加/修改")
@Data
public class DroneVO implements Serializable {

    @ApiModelProperty(value = "无人机ID")
    private Long drone_id;

    @ApiModelProperty(value = "无人机型号")
    private Object model;

    @ApiModelProperty(value = "无人机状态")
    private Object status;

    @ApiModelProperty(value = "当前位置经纬度")
    private Integer current_location;

    @ApiModelProperty(value = "最大载重（kg）")
    private BigDecimal max_load;

    @ApiModelProperty(value = "续航时间（分钟）")
    private Integer battery_life;

    @ApiModelProperty(value = "是否防水")
    private Integer is_waterproof;

    @ApiModelProperty(value = "上次维护日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date last_maintenance;


}